package cn.zpfhomework02;

public class Animal {String name;
    private String eat;
   private static String sleep="睡觉";
   public Animal(String n,String e){
        name=n;
        eat=e;
    }
    public void getInfo() {
        System.out.print("我是只可爱的"+name);
        System.out.println("，我喜欢"+eat+"和"+sleep+"。");
    }

}
